class CreateCodeFiles < ActiveRecord::Migration
  def self.up
    create_table :code_files do |t|
      t.string :name
      t.boolean :view
      t.text :code
      t.integer :widget_id

      t.timestamps
    end
  end

  def self.down
    drop_table :code_files
  end
end
